package com.xc.exception;

/**
 * 基础异常
 */
public class BaseException extends RuntimeException {
    private final Integer errorCode;

    public BaseException(Integer errorCode, String data) {
        super(data);
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return this.errorCode;
    }
}
